
<?=$this->render ( 'public/header.phtml' )?>
<div class="site-left" style="width: 97%;">
<div class="photo-menu">
<div class="fl">发表时间:<?=$this->photoInfo ['photo_inputtime']?></div>
<div class="fr"><a name="photo"
	href="<?=$this->url ( array ( 'controller' => 'photo' , 'site_id' => $this->modelInfo ['site_id'] , 'model_id' => $this->modelInfo ['model_id'] ), 'site_model_index' );?>">>>返回照片列表</a></div>
</div>
<div class="box3">
<div class="title"><?=$this->photoInfoInfo ['photo_name']?></div>
<div class="content">
 <div class="photo-image"><a title="<?=$this->photoInfo ['photo_name']?>" href=" <?php
		if ($this->next) {
			echo $this->url ( array ( 
				'site_id' => $this->next ['site_id'] , 
				'controller' => 'photo' , 
				'model_id' => $this->next ['model_id'] , 
				'id' => $this->next ['photo_id'] 
			), 'site_model_content' 
			);
		}
		else {
			echo $this->url ( array ( 
				'site_id' => $this->first ['site_id'] , 
				'controller' => 'photo' , 
				'model_id' => $this->first ['model_id'] , 
				'id' => $this->first ['photo_id'] 
			), 'site_model_content' 
			);
		}
		?>"><img src="<?=$this->photoInfo ['photo_path']?>"
		alt="<?=$this->photoInfo ['photo_name']?>" /></a></div>
</div>
</div>
<!-- end box3 -->

<div class="page">
    <?php
				if ($this->pre) {
					echo "<a href='" . $this->url ( array ( 
						'site_id' => $this->pre ['site_id'] , 'controller' => 'photo' , 'model_id' => $this->pre ['model_id'] , 'id' => $this->pre ['photo_id'] 
					), 'site_model_content' ) . "'>上一页</a>";
				}
				else {
					echo '上一页';
				}
				?>
    /
    <?php
				if ($this->next) {
					echo "<a href='" . $this->url ( array ( 
						'site_id' => $this->next ['site_id'] , 'controller' => 'photo' , 'model_id' => $this->next ['model_id'] , 'id' => $this->next ['photo_id'] 
					), 'site_model_content' ) . "'>下一页</a>";
				}
				else {
					echo "<a href='" .$this->url ( array ( 
				'site_id' => $this->first ['site_id'] , 
				'controller' => 'photo' , 
				'model_id' => $this->first ['model_id'] , 
				'id' => $this->first ['photo_id'] 
			), 'site_model_content' 
			) . "'>下一页</a>";
				}
				?>
    
    </div>
<div class="intro"><b><?=$this->photoInfo ['photo_name']?></b> <?=$this->photoInfo ['photo_intro']?></div>

<div class="comment">发表您的观点...
<form
	action="<?=$this->url ( array ( 'action' => 'add' ), 'site_comment_do' )?>"
	method="post" id="comment">
<p><textarea name="comment_text" id="comment_text" cols="45" rows="5"></textarea>
</p>
<p><br />
<input type="submit" name="button" id="button" value="发 表" /> <input
	type="hidden" name="site_id" id="site_id"
	value="<?=$this->modelInfo ['site_id']?>" /> <input type="hidden"
	name="model_type" id="model_type" value="photo" /> <input type="hidden"
	name="model_id" id="model_id"
	value="<?=$this->modelInfo ['model_id']?>" /> <input type="hidden"
	name="item_id" id="item_id"
	value="<?=$this->photoInfo ['photo_id']?>" /></p>
</form>
<div class="list" id="comment_list">
     <?php
					foreach ( $this->comment as $val ) {
						?>
       <table width="100%" border="0">
	<tr>
		<td class="avatar"><img
			src="<?=$this->userObject->getAvatar ( '', $val ['user_id'] )?>" />
		<p><?=$this->userObject->getUserName ( $val ['user_id'] );?></p>
		</td>
		<td class="text">
		<div class="fr"><?=$val ['comment_inputtime']?></div>
          <?=$val ['comment_text']?>
           </td>
	</tr>
</table>
   <?
					}
					?>
     </div>
</div>

</div>
<!-- end site-left -->